<template>
	<view>
		<!-- 收藏 -->
		<view>
			<view class="page">
				<view class="example-body">
					<uni-nav-bar background-color="#003466" color="#ffffff" :status-bar="true" @click-left="back" left-icon="arrowleft" style="position: relative;">
						<view class="flex-item" style="position: absolute;left: 0;right: 0;margin: auto;width: 50%;">我的收藏</view>
					</uni-nav-bar>
				</view>
				<view class="collection-search">
					<view class="collection-searchlogo"><image src="../../static/images/searchpng.png" mode=""></image></view>
					<input type="text" value="" class="collection-input" placeholder="搜索" />
				</view>
				<view class="collection-choose">
					<view class="collection-container">
						<view>图片与视频</view>
						<view class="loadarea">链接</view>
						<view>文件</view>
					</view>
				</view>
				<view class="collection-content">
					<view class="collection-imgright">
						<view class="collection-img"><image src="../../static/images/choosethree.png" mode=""></image></view>
						<view class="collection-words"><view>20181214201215-mio5jpw4ks9h.xls.....</view></view>
					</view>
					<view class="collection-time">
						<view>2018上半年</view>
						<view class="time-area">2019/09/07</view>
					</view>
				</view>
				<view class="collection-content">
					<view class="collection-imgright">
						<view class="collection-imgright-new"><image src="../../static/images/loadname.png" mode=""></image></view>
						<view class="collection-words"><view>企业湾</view></view>
					</view>
					<view class="collection-time">
						<view>Lee</view>
						<view class="time-area">2018/03/28</view>
					</view>
				</view>
				<view class="collection-content">
					<view class="collection-imgright">
						<view class="collection-imgright-last"><image src="../../static/images/lph.png" mode=""></image></view>
					</view>
					<view class="collection-time">
						<view>刘川</view>
						<view class="time-area">2017/07/18</view>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
import uniNavBar from '@/components/uni-nav-bar/uni-nav-bar.vue';
import uniIcon from '@/components/uni-icon/uni-icon.vue';
export default {
	data() {
		return {
			remnant: 0
		};
	},
	methods: {
		//字数
		descInput() {
			this.remnant = e.detail.value.length;
		},
		back() {
			uni.navigateBack({
				delta: 1
			});
		}
	},
	onNavigationBarButtonTap: function(e) {
		console.log(JSON.stringify(e));
	},
	components: {
		uniNavBar,
		uniIcon
	}
};
</script>

<style>
page {
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	background-color: #efeff4;
}

.flex-item {
	font-size: 20px;
	text-align: center;
}

.uni-icon {
	padding-left: 42%;
}

.uni-navbar__header-btns:last-child {
	width: 120px;
}

.uni-navbar__header-btns {
	padding: 0;
}

.example-body {
	position: relative;
	left: 0;
	right: 0;
	top: 0;
	z-index: 1;
}

.collection-search {
	width: 94%;
	height: 40px;
	background: #ffffff;
	margin: 0 auto;
	margin-top: 12px;
	border-radius: 3px;
	display: flex;
}

.collection-searchlogo {
	width: 5%;
	height: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
}

.collection-searchlogo image {
	max-width: 46%;
	max-height: 46%;
}

.collection-input {
	width: 80%;
	height: 100%;
	font-size: 14px;
	line-height: 44px;
	margin-left: 6px;
}

input {
	height: 44px;
	min-height: 44px;
}

.collection-choose {
	width: 94%;
	height: 56px;
	background-color: #ffffff;
	margin: 0 auto;
	border-radius: 3px;
	margin-top: 12px;
	display: flex;
	justify-content: center;
	align-items: center;
}

.collection-container {
	width: 100%;
	height: 20px;
	font-size: 16px;
	display: flex;
	justify-content: space-between;
}

.collection-container view {
	width: 33.3333%;
	line-height: 20px;
	text-align: center;
	color: #003466;
}

.collection-container .loadarea {
	border-left: 1px solid #999999;
	border-right: 1px solid #999999;
}

.collection-content {
	width: 94%;
	background-color: #ffffff;
	border-radius: 3px;
	margin: 0 auto;
	margin-top: 12px;
}

.collection-time {
	font-size: 14px;
	color: #999999;
	margin-top: 12px;
	display: flex;
	padding: 0 0 2% 2%;
}

.time-area {
	margin-left: 20px;
}

.collection-img {
	width: 10%;
	height: 80px;
	display: flex;
	justify-content: center;
	align-items: center;
}

.collection-img image {
	max-width: 100%;
	max-height: 100%;
}

.collection-words {
	font-size: 14px;
	margin-left: 26px;
}

.collection-words .mbsize {
	color: #999999;
	margin-top: 12px;
}

.collection-imgright {
	display: flex;
	padding: 2% 2% 0 2%;
}

.collection-imgright-new {
	width: 60px;
	height: 60px;
	display: flex;
	justify-content: center;
	align-items: center;
}

.collection-imgright-new image {
	max-width: 100%;
	max-height: 100%;
}

.collection-imgright-last {
	width: 68px;
	height: 63px;
	display: flex;
	justify-content: center;
	align-items: center;
}

.collection-imgright-last image {
	max-width: 100%;
	max-height: 100%;
}
</style>
